/**
 * This is the bean class to store the location information which contains:
 * Longitude and Latitude;
 * The expected drive direction for specific location;
 * Whether the specific location is allowed for park or not;
 * What is the expected speed limit for the location;
 * etc.
 */
package com.pi.vo;

/**
 * @author Coy.Qiu
 *
 */
public class LocationInfo {

	private double longitude;
	private double latitude;
	
	//We can abstract the direction as the degree of a circle from 0 to 359
	//0 means the NORTH, 90 means EAST, 180 means SOUTH, and 270 means WEST
	private int direction;	
	
	//If allowedPark=true means this location is allowed for vehicle to park
	private boolean allowedPark; 
	
	//50 means the speed limit is 50 km/h
	private int speedLimit;
	
	
	/**
	 * @return the longitude
	 */
	public double getLongitude() {
		return longitude;
	}

	/**
	 * @param longitude the longitude to set
	 */
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	/**
	 * @return the latitude
	 */
	public double getLatitude() {
		return latitude;
	}

	/**
	 * @param latitude the latitude to set
	 */
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	/**
	 * @return the direction
	 */
	public int getDirection() {
		return direction;
	}

	/**
	 * @param direction the direction to set
	 */
	public void setDirection(int direction) {
		this.direction = direction;
	}

	/**
	 * @return the allowedPark
	 */
	public boolean isAllowedPark() {
		return allowedPark;
	}

	/**
	 * @param allowedPark the allowedPark to set
	 */
	public void setAllowedPark(boolean allowedPark) {
		this.allowedPark = allowedPark;
	}

	/**
	 * @return the speedLimit
	 */
	public int getSpeedLimit() {
		return speedLimit;
	}

	/**
	 * @param speedLimit the speedLimit to set
	 */
	public void setSpeedLimit(int speedLimit) {
		this.speedLimit = speedLimit;
	}


	
}
